package lab02.test02;

/**
 * Created by Jammy on 2017/10/15.
 */

import java.util.Scanner;

public class Test02 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        Circle circle=new Circle();
        System.out.println("请输入圆的半径：");
        Double r=sc.nextDouble();
        circle.setR(r);

        System.out.println("周长为："+circle.length()+"\t"+"面积为："+circle.area());
    }
}

